]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Show cellular-disabled icon when cellular is disabled
authorJonas Dreßler <verdre@v0yd.nl>
Fri, 18 Feb 2022 20:14:46 +0000 (21:14 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 23 Feb 2022 00:15:05 +0000 (00:15 +0000)
We also have this icon, so let's use it.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>

js/ui/status/network.js

index e365139779335cbde130aa03cfbef57dd9ab0281..27ae5615fc4febf09f0929f163753f9b1c307bdf 100644 (file)
@@ -627,6 +627,13 @@ var NMDeviceModem = class extends NMConnectionDevice {
             return super._getStatus();
     }
 
+    _getMenuIcon() {
+        if (!this._client.wwan_enabled)
+            return 'network-cellular-disabled-symbolic';
+
+        return this.getIndicatorIcon();
+    }
+
     getIndicatorIcon() {
         if (this._device.active_connection) {
             if (this._device.active_connection.state == NM.ActiveConnectionState.ACTIVATING)